import request from "@/utils/request";

export function getQueProgramById(id) {
    return request({
        url: '/que/program/'+id,
        method: 'get',
        headers:{
            Authorization:localStorage.getItem('Authorization')
        }
    })
}

export function listQueProgram(pageNum, pageSize, difficulty, userQueStatus) {
    return request({
        url: '/que/program/list',
        method: 'get',
        params: {
            pageNum: pageNum,
            pageSize: pageSize,
            difficulty: difficulty,
            userQueStatus: userQueStatus
        },
        headers:{
            Authorization:localStorage.getItem('Authorization')
        }

    })
}

export function getUserQuestionProgramRelation() {
    return request({
        url: '/user/que/relation/program',
        method: 'get',
        headers:{
            Authorization:localStorage.getItem('Authorization')
        }
    })
}
